package com.light.gulimall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.light.common.to.SecKillRabbitTO;
import com.light.common.utils.PageUtils;
import com.light.gulimall.order.dto.SubmitOrderDTO;
import com.light.gulimall.order.entity.OrderEntity;
import com.light.gulimall.order.vo.OrderConfirmVO;
import com.light.gulimall.order.vo.SubmitOrderResponseVO;

import java.util.Map;

/**
 * 订单
 *
 * @author minmin
 * @email 980680541@gmail.com
 * @date 2024-07-16 21:27:57
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 组黄订单确认页面数据
     * @return
     */
    OrderConfirmVO confirmOrder();

    /**
     * 下单业务处理方法
     * @param dto   前端传递的订单信息
     * @return  处理结果
     */
    SubmitOrderResponseVO submitOrder(SubmitOrderDTO dto);

    void doReleaseOrder(OrderEntity order);

    void createSecKillOrder(SecKillRabbitTO secKillRabbitTO);
}

